package com.cloud.core.http.error;

/**
 * Created by Chen on 2017/6/19.
 * 功能描述：
 */

public class ApiException extends Exception {
    public int code;
    public String message;
    public Throwable throwable;

    public ApiException(Throwable throwable, int code) {
        super(throwable);
        this.throwable = throwable;
        this.code = code;
    }

    public ApiException(Throwable throwable, String message) {
        super(throwable);
        this.throwable = throwable;
        this.message = message;
    }

    public ApiException(String message) {
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
